package com.mc.collection;

import com.google.common.collect.Maps;

import java.util.HashMap;

/***
 * @ClassName Test
 * @Description todo
 * @Author CC
 * @Date: 2019/11/1310:26
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
//        BitMap map=new BitMap();
//        map.put("a",100);
//        map.put("b",200);
//        map.put("c",300);
//        map.put("a",200);
//        map.put(null,200);
//        map.put(null,200);
//        System.out.println(map.get(null));
        RandomString randomString = new RandomString();
        BitMap<String,String> map = new BitMap();
        for (int i = 0; i < 100; i++) {
            String key = randomString.random(2, "abcdefghijkhlmnopqrstuvwxyz");
            String value = randomString.random(3, "1234567890");
            map.put(key, value);
        }
        String jr = map.get("jr");
        System.out.println(jr);
        System.out.println(map.get("ab"));
        System.out.println(map.get("ac"));
        System.out.println(map.get("ad"));




    }
}
